package com.jindi.appuser.service;

import com.jindi.appuser.common.ServerResponse;

import javax.servlet.http.HttpServletRequest;

public interface PayService {
    /**
     * 支付宝支付
     * @param uid
     * @param total_amount
     * @param timeout_express
     * @return
     */
    ServerResponse payByAli(String uid,   String appId, String total_amount, String timeout_express);

    /**
     * 支付宝服务端验签
     * @param request
     * @return
     */
    String checkAliSign(HttpServletRequest request);

    /**
     * 微信支付
     * @param uid
     * @param total_amount
     * @param request
     * @return
     */
    ServerResponse payByWechat(String uid, String os,  String total_amount, HttpServletRequest request);

    /**
     * 微信服务端验签
     * @param request
     * @return
     */
    String checkWechatSign(HttpServletRequest request);


    /**
     * 取消订单
     * @return
     */
    int removeOrder();

    ServerResponse payByAliPrice(String uid, String os, String total_amount, String timeout_express, String priceId);

    String checkAliSignPrice(HttpServletRequest request);

    ServerResponse payByWechatPrice(String uid, String os, String total_amount, HttpServletRequest request, String priceId);

    String checkWechatSignPrice(HttpServletRequest request);

}
